package com.idea.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

//声明该类是SpringBoot的引导类
@SpringBootApplication
// @MapperScan注解，扫描MyBatis Mapper接口类
@MapperScan("com.idea.boot.mapper")
public class MyApplication {

    //main是程序的入口
    public static void main(String[] args) {
        //run方法表示运行SpringBoot的引导类，run方法的参数是SpringBoot引导类的字节码对象
        SpringApplication.run(MyApplication.class);
    }
}
